-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate: host-usage, param_helpers, and prefix-1-ary #91
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ericdeansanchez
changed the title
deprecate: param_helpers
deprecate: host-usage, param_helpers, and aliases
Aug 14, 2020
sherwinski
reviewed
Aug 14, 2020
sherwinski
approved these changes
Aug 15, 2020
sherwinski
approved these changes
Aug 15, 2020
ericdeansanchez
changed the title
deprecate: host-usage, param_helpers, and aliases
deprecate: host-usage, param_helpers, prefix(1), and aliases
Aug 17, 2020
sherwinski
approved these changes
Aug 17, 2020
ericdeansanchez
changed the title
deprecate: host-usage, param_helpers, prefix(1), and aliases
deprecate: host-usage, param_helpers, and prefix-1-ary
Aug 26, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The purpose of this PR is to deprecate the following:
ParamHelpers#rect
without replacement:host
, replaced byoptions[:domain], @domain
prefix(1)
, replaced byprefix(0)
Host Deprecation
The change from
host
todomain
has been made to improve consistencyon a few different levels. The technical reasons are that domain and
host refer to related, but ultimately, slightly different things.
"Host" generally refers to a particular machine that is connected to a
network whereas "domain" generally refers to some (more specific) IP
resource.
The other, equally pertinent, reasons revolve around achieving feature
parity kit-wide (e.g.
imigx-core-js
usesdomain
).Imgix::Client#prefix Arity Change
At another point in time the
prefix
function was doing more work thanit is now. The work it once did required a
path
of sorts to be passedto a
get_host(path)
(2fd2387). This is no longer the case so the aritywas reduced to zero.